package org.dromara.agriculture.domain.bo;

import org.dromara.agriculture.domain.AgricultureLand;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 地块业务对象 agriculture_land
 *
 * @author Robin
 * @date 2024-12-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AgricultureLand.class, reverseConvertGenerate = false)
public class AgricultureLandBo extends BaseEntity {

    /**
     * 地块ID
     */
    @NotNull(message = "地块ID不能为空", groups = { EditGroup.class })
    private Long landId;

    /**
     * 地块名称
     */
    @NotBlank(message = "地块名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String landName;

    /**
     * 字典 agriculture_land_type
     */
    @NotBlank(message = "字典 agriculture_land_type不能为空", groups = { AddGroup.class, EditGroup.class })
    private String landType;

    /**
     * 地块面积
     */
    @NotNull(message = "地块面积不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long landArea;

    /**
     * 边框宽度
     */
    @NotNull(message = "边框宽度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long strokeWeight;

    /**
     * 边框颜色
     */
    @NotBlank(message = "边框颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String strokeColor;

    /**
     * 边框透明度
     */
    @NotNull(message = "边框透明度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long strokeOpacity;

    /**
     * 地块路径
     */
    @NotBlank(message = "地块路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String landPath;

    /**
     * 地块背景颜色
     */
    @NotBlank(message = "地块背景颜色不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fillColor;

    /**
     * 地块透明度
     */
    @NotNull(message = "地块透明度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fillOpacity;

    /**
     * 当前种植批次
     */
    @NotNull(message = "当前种植批次不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long currentBatch;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long orderNum;

    /**
     * 基地ID
     */
    @NotNull(message = "基地ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long baseId;


    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;


}
